import config from "@/config"
import http from "@/utils/request"

export const getRoleList = (data) => {
	return http.post(`${config.API_SYS_BASE}/role/list`, data).catch((err) => {
		console.log(err)
	});
}
export const addOrUpdate = (data) => {
	return http.post(`${config.API_SYS_BASE}/role/addOrUpdate`, data).catch((err) => {
		console.log(err)
	});
}
